<?php
namespace app\common\service;
use \app\common\model\LitestoreShopComment as LitestoreShopCommentModel;


/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/6
 * Time: 18:06
 */
class LitestoreShopComment extends Base {
    public function __construct()
    {
        parent::__construct();
        $LitestoreShopCommentModel =  new LitestoreShopCommentModel();
        $this->model = $LitestoreShopCommentModel;
    }
    public function isComment($uid,$good_id){
        $model = $this->model;
        $map['uid'] = $uid;
        $map['sid'] = $good_id;
        return $model->where($map)->count('id');

    }

}